package com.mzy.datepackage.M2022.Feb.Six;

import java.util.Deque;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/2/6 21:57
 * @Version 1.0
 */
public class demo {
    public static void main(String[] args) {
        HashMap<Integer, Integer> integerIntegerHashMap = new HashMap<>();

        Map<Character, Character> pairs = new HashMap<Character, Character>() {{
            put(')', '(');
            put(']', '[');
            put('}', '{');
        }};

        for (Map.Entry<Character, Character> key:pairs.entrySet()
             ) {
            System.out.println(key.getKey());
        }
        Deque<Character> stack = new LinkedList<Character>();
        System.out.println(stack.peek());


    }
}
